<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>test for reload</title>
    </head>
    <body>
        <script type="module">
            import { enableReloadWhenPageback } from '../src/dom.js';
            enableReloadWhenPageback(() => {
                alert('page back');
            });
        </script>

        <div>
            点击
            <a href="https://gitee.com" target="_self">此处</a>
            进入下一个页面，然后返回，你应该会看到一个弹框
        </div>
    </body>
</html>
